/*
 * 文件名：ReqeustEntity.java	 
 * 时     间：下午9:58:02
 * 作     者：Administrator       
 * 版     权： 2012-2022 湖南智软网络科技, 公司保留所有权利.
 * 联     系：http://www.073586.com/
 */
package com.local.manager.middleware;

import java.util.ArrayList;
import java.util.List;

/**
 * 类描述:请求实体
 * 
 * @ClassName: ReqeustEntity
 * @author lyf
 * @date 2015年3月22日 下午9:58:02
 */
public class ReqeustEntity
{
	private List<String> headList = new ArrayList<String>();
	private List<String> bodyList = new ArrayList<String>();
	/**
	 * 心跳检查,
	 */
	private boolean isCheckActivit = false;
	
	/**
	 * 标记是否开始读内容,如果为false表示读取头数据，为真表示开始去body
	 */
	private boolean isStartReadBodyOrHeard = false;
	
	/**
	 * 连接是否断开 false 正常 ，true标示无法读取客户端信息，已经断开;
	 */
	private boolean isConnection = false;
	
	/**
	 * 客户端响应，考虑指令下行. true 标示设备响应数据
	 */
	private boolean isResponce = false;
	
	/**
	 * 错误信息
	 */
	private String error = null;
	
	private String errorCode = null;
	
	public List<String> getHeadList()
	{
		return headList;
	}
	
	public void setHeadList(List<String> headList)
	{
		this.headList = headList;
	}
	
	public List<String> getBodyList()
	{
		return bodyList;
	}
	
	public void setBodyList(List<String> bodyList)
	{
		this.bodyList = bodyList;
	}
	
	public boolean isCheckActivit()
	{
		return isCheckActivit;
	}
	
	public void setCheckActivit(boolean isCheckActivit)
	{
		this.isCheckActivit = isCheckActivit;
	}
	
	public boolean isStartReadBodyOrHeard()
	{
		return isStartReadBodyOrHeard;
	}
	
	public void setStartReadBodyOrHeard(boolean isStartReadBodyOrHeard)
	{
		this.isStartReadBodyOrHeard = isStartReadBodyOrHeard;
	}
	
	public String getError()
	{
		return error;
	}
	
	public void setError(String error)
	{
		this.error = error;
	}
	
	public boolean isConnection()
	{
		return isConnection;
	}
	
	public void setConnection(boolean isConnection)
	{
		this.isConnection = isConnection;
	}
	
	public boolean isResponce()
	{
		return isResponce;
	}
	
	public void setResponce(boolean isResponce)
	{
		this.isResponce = isResponce;
	}
	
	public String getErrorCode()
	{
		return errorCode;
	}
	
	public void setErrorCode(String errorCode)
	{
		this.errorCode = errorCode;
	}
	
}
